package LECONGHAU.OOP.DEMO;

import java.security.PrivateKey;

import org.omg.CORBA.PRIVATE_MEMBER;

public class Student {
	// 1. bien toan cuc(datafield)
	// co the trieu goi bien nay o bat ky dau trong lop doi tuong hien thoi
	private int rollNumber;
	private String fullName;
	private double mark;
	

	// void Printfinfo01(){
	// rollNumber=100;
	// String fullName="nguyen van A";// bien cuc bo
	// }
	// void Printfinfo02(){
	// rollNumber=200;
	// }
	// 2.ham khoi dung(contructors)
	/*
	 * dac diem cua ham khoi dung +trung ten voi lop doi tuong +ko co kieu tra
	 * ve +mac dinh pham vi truy cap la public +co 02 kieu ham khoi dung -co
	 * tham so -khong tham so
	 */
	public Student() {
		// su dung de khoi tao gia tri mac dinh cho doi tuong khi dc sinh ra
	     rollNumber=0;
		 fullName="example";
		 mark=10;
	}

	public Student(int rollNumber, String fullName, double mark) {
		this.rollNumber = rollNumber;
		this.fullName = fullName;
		this.mark = mark;
	}

	// 3.thuoc tinh
	// la phuong thuc su dung de the hien thong tin cho bien toan cuc thong qua
	// get set

	public int getRollNumber() {
		return rollNumber;
	}

	public void setRollNumber(int rollNumber) {
		this.rollNumber = rollNumber;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public double getMark() {
		return mark;
	}

	public void setMark(double mark) {
		this.mark = mark;
	}
	public String dihoc(){
		return "sinh vien dang di hoc";
	}
   public int bay(int info){
	   return info;
   }
	
}
